interface BadExample {
  method(x: string): void;
  another(): void;
  method(x: number): void; // error
}

class BadClass {
  method(x: string): void {}
  somethingElse(): void {}
  method(x: number): void {} // error
}
